package yto.freemarker.springcloud.service;

import org.springframework.stereotype.Component;
import yto.freemarker.springcloud.entity.User;

/**
 * @author dongxing
 * @create 2018-03-02 14:26
 **/
@Component
public class HystrixClientFallback implements UserService {

    @Override
    public User getUserById(String id) {
        return User.builder().name("失败的信息").build();
    }

    @Override
    public User postUser(User user) {
        return User.builder().username("失败的信息2").build();
    }
}
